package com.woniu.car.parameter;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Data
public class ElasticGoodsUpdateParameter {
    @ApiModelProperty(value = "商品名")
    private String goodsName;
    @NotNull(message = "商品编号异常不能更新")
    @ApiModelProperty(value = "商品编号为唯一键作为Id")
    private String goodsNo;
    @ApiModelProperty(value = "种类名")
    private String categoryName;
    @ApiModelProperty(value = "商品描述")
    private String description;
    @NotNull(message = "商品价格不能为空")
    @Min(value=0,message = "商品价格不能为负数")
    @ApiModelProperty(value = "商品价格",example = "0.0")
    private Double goodsPrice;
    @ApiModelProperty(value = "商品图片")
    private String image;
    @ApiModelProperty(value = "商品详细分类")
    private String specName;
    @ApiModelProperty(value = "商品属性")
    private String specValue;
}
